package routes

import (
	_ "errors"
	"iris-mvc/models"
	"iris-mvc/services"
	_ "github.com/kataras/iris"
)


func Users(service services.UserService) (results []models.User) {
	return service.GetAll()
}

// 注意函数和方法的区别
func GetUserById(service services.UserService, id int64) (movie models.User, found bool) {
	return service.GetByID(id)
}

